import request from '@/utils/request'

// 获取大棚信息
export function getGreenhouseInfo() {
  return request({
    url: '/greenhouse/info',
    method: 'get',
    params: {
      id: 1  // 指定获取 ID 为 1 的大棚信息
    }
  }).then(response => {
    console.log('Greenhouse API response:', response);
    return response;
  }).catch(error => {
    console.error('Greenhouse API error:', error);
    throw error;
  });
} 